import 'dart:async';

import 'package:flutter/cupertino.dart';
import 'package:videotop/base_model.dart';
import 'package:videotop/myinfo.dart';
import 'package:videotop/util.dart';

/// created by hx
///    2021/1/26:9:45

class VideoPageModel extends BaseModel{

  BuildContext context;
  MyInfo myInfo;
  Util util;

  VideoPageModel(this.context,this.myInfo,this.util);

  final _users = <int>[];
  final _infoStrings = <String>[];
  bool muted = false;

  bool isyingchang = true;
  bool isjoin = false;

  int time = 0; // 接通总时长
  int endtime = 0; //倒计时
  bool daojishishow = false;
  int dialogtime = 5; //闪烁时长
  bool dialogshow = false;// 是否闪烁
  Timer timer;

  String fen = '';
  String miao = '';
  bool show = false;
  bool endshow = false;

  bool isbreak = true;

  bool isoff = true; // 时候接通视频  true 没接通自动挂断

  bool isdispose = false; //如果自己挂断，30秒就不弹出toast

  AnimationController _controller;// 闪烁动画
  Animation _animation;
  int endmin = 3; // 3 2 1 剩余分钟

  bool endcancel = false;//金币不够挂断判断

  getInit(){

  }
}